﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyWeb.Data;
using System.Data;
namespace MyWeb.Business
{
    public class UserService
    {
        public UserController db = new UserController();
        #region[User_Insert]
        public void User_Insert(UserInfo data)
        {
            db.User_Insert(data);

        }
        #endregion
        #region[User_Update]
        public void User_Update(UserInfo data)
        {
            db.User_Update(data);

        }
        #endregion
        #region[User_Delete]
        public void User_Delete(string ID)
        {
            db.User_Delete(ID);

        }
        #endregion
        #region[User_GetByAll]
        public DataTable User_GetByAll()
        {
            return db.User_GetByAll();
        }
        #endregion
        #region[User_GetByID]
        public DataTable User_GetByID(string ID)
        {
            return db.User_GetByID(ID);
        }
        #endregion
        #region[User_GetByTop]
        public void User_GetByTop(string Top, string Where, string Order)
        {
            db.User_GetByTop(Top, Where, Order);
        }
        #endregion

        public static int CheckLogin(string p, string p_2)
        {
            throw new NotImplementedException();
        }
    }
}
